package com.automannn.atm_back.codegenerate.pojo.oneToMany;

import com.automannn.atm_back.codegenerate.pojo.ColumnEntity;

import java.util.List;

/**
 * 子表实体
 * @author chenkh
 * @time 2020/6/27 14:06
 */
public class SubTableEntity {
    /**
     * 实体包名
     */
    private String entityPackage;
    /**
     * 表名
     */
    private String tableName;
    /**
     * 实体名
     */
    private String entityName;
    /**
     * 主键策略
     */
    private String primaryKeyPolicy;
    /**
     * 序列值
     */
    private String sequenceCode;
    /**
     * 模板描述
     */
    private String ftlDescription;
    /**
     * 外键
     */
    private String[] foreignKeys;
    /**
     * 子属性列
     */
    private List<ColumnEntity> subColums;

    public SubTableEntity() {
    }

    public String getEntityPackage() {
        return this.entityPackage;
    }

    public String getTableName() {
        return this.tableName;
    }

    public String getEntityName() {
        return this.entityName;
    }

    public String getFtlDescription() {
        return this.ftlDescription;
    }


    public void setEntityPackage(String entityPackage) {
        this.entityPackage = entityPackage;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public void setFtlDescription(String ftlDescription) {
        this.ftlDescription = ftlDescription;
    }


    public String[] getForeignKeys() {
        return this.foreignKeys;
    }

    public void setForeignKeys(String[] foreignKeys) {
        this.foreignKeys = foreignKeys;
    }

    public String getPrimaryKeyPolicy() {
        return this.primaryKeyPolicy;
    }

    public String getSequenceCode() {
        return this.sequenceCode;
    }

    public void setPrimaryKeyPolicy(String primaryKeyPolicy) {
        this.primaryKeyPolicy = primaryKeyPolicy;
    }

    public void setSequenceCode(String sequenceCode) {
        this.sequenceCode = sequenceCode;
    }

    public List<ColumnEntity> getSubColums() {
        return subColums;
    }

    public void setSubColums(List<ColumnEntity> subColums) {
        this.subColums = subColums;
    }
}
